import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import store from './store'
import Element from 'element-ui'
import {post,fetch,patch,put} from './config/http'
Vue.use(Element, {size: 'small'})
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
//定义全局变量
Vue.prototype.$post=post;
Vue.prototype.$fetch=fetch;
Vue.prototype.$patch=patch;
Vue.prototype.$put=put;

Vue.use(Vuex)
new Vue({
  el: '#app',
  router, store,
  components: {App},
  template: '<App/>'
})




